package com.itheima.mp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.mp.domain.po.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.boot.autoconfigure.security.SecurityProperties;
import java.util.List;


public interface UserMapper extends BaseMapper<User> {



    @Update(" update tb_user set balance = balance - ${money} where id = ${id} ")
    void deductBalance(@Param("id") Long id, @Param("money") Integer money);

/*
    void saveUser(SecurityProperties.User user);

    void deleteUser(Long id);

    void updateUser(User user);

    User queryUserById(@Param("id") Long id);

    List<User> queryUserByIds(@Param("ids") List<Long> ids);*/
}
